package com.it.test;

import java.util.concurrent.CountDownLatch;

/**
 * @author げっしょく
 * @date 2021/8/9
 */
public class heike extends Thread {
    private CountDownLatch cdl;
    public heike(CountDownLatch cdl) {
        this.cdl = cdl;
    }
    @Override
    public void run() {
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("亚索准备完毕");
        cdl.countDown();
    }
}
